
/*
7 avr. 2012 jblanchard 
*/

package org.jcb.dao.data;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.List;
import java.util.StringTokenizer;

import org.jcb.R;
import org.jcb.model.DataChineseLanguage;


public class ChineseDatabase {

private static String replacePinyin(String s) {
	String car1 = s.replaceAll("ā", "a1");
	car1 = car1.replaceAll("á", "a2");
	car1 = car1.replaceAll("ǎ", "a3");
	car1 = car1.replaceAll("à", "a4");
	
	
	car1 = car1.replaceAll("ē", "e1");
	car1 = car1.replaceAll("é", "e2");
	car1 = car1.replaceAll("ě", "e3");
	car1 = car1.replaceAll("è", "e4");
	
	car1 = car1.replaceAll("ī", "i1");
	car1 = car1.replaceAll("í", "i2");
	car1 = car1.replaceAll("ǐ", "i3");
	car1 = car1.replaceAll("ì", "i4");

	car1 = car1.replaceAll("ō", "o1");
	car1 = car1.replaceAll("ó", "o2");
	car1 = car1.replaceAll("ǒ", "o3");
	car1 = car1.replaceAll("ò", "o4");

	car1 = car1.replaceAll("ū", "u1");
	car1 = car1.replaceAll("ú", "u2");
	car1 = car1.replaceAll("ǔ", "u3");
	car1 = car1.replaceAll("ù", "u4");
	

	
	
	return car1 ;
}
	
public static void exportData() {
	StringBuilder content = new StringBuilder() ;
	List<DataChineseLanguage> listExport = loadData();
	//Comparator c = new Comparator ();
	Arrays.sort(chineseData, new Comparator() {

		public int compare(Object o1, Object o2) {
			String[] st1 = (String[]) o1 ;
			String[] st2 = (String[]) o2 ;
			String car1 = replacePinyin(st1[1].toLowerCase()) ;
			String car2 = replacePinyin(st2[1].toLowerCase()) ;
			return (car1.compareTo(car2) );
		}
		
	});
	//listExport.
	for (int i = 0 ; chineseData != null && i < chineseData.length ; i++) {
	//for (DataChineseLanguage dcl : listExport) {
		//String ligne = "\"" + dcl.getChinese() + "\"" ;
		String ligne = ",{\"" + chineseData[i][0] + "\"" 
		+ ",\"" + chineseData[i][1].toLowerCase() + "\""
		+ ",\"" + chineseData[i][2].toLowerCase() + "\""
		+ ",\"" + chineseData[i][3].toLowerCase() + "\""
		+ ",\"" + chineseData[i][4].toLowerCase() + "\""
		+ ",\"" + chineseData[i][5].toLowerCase() + "\""
		+ ",\"" + chineseData[i][6].toLowerCase() + "\""
		+ ",\"" + chineseData[i][7].toLowerCase() + "\""
		+ ",\"" + chineseData[i][8].toLowerCase() + "\""
		+ ",\"" + chineseData[i][9].toLowerCase() + "\""
		+ ",\""  + "\""
		+ ",\"" + chineseData[i][11].toLowerCase() + "\""
		+ ",\""  + "\""
		+ ",\""  + "\""		
		+ "}"
		;
		content.append("\n" + ligne);
	}
	System.out.println(content);
}

public static void main(String args[]) {
	exportData();
}


public static List<DataChineseLanguage> loadData(String[][] chineseData) {
	List<DataChineseLanguage> data = new ArrayList<DataChineseLanguage>();
	for (int i = 0 ; chineseData != null && i < chineseData.length ; i++) {
		DataChineseLanguage dat = new DataChineseLanguage(chineseData[i][0]);
		data.add(dat);
		dat.setId(i + "");
		dat.setPinyin(chineseData[i][1]);
		dat.setTranslated(chineseData[i][2]);
		dat.setNumQuizz(chineseData[i][3]);
		dat.setCarCompose(chineseData[i][4]);
		dat.setCarComposeTraduit(chineseData[i][5]);
		dat.setExemple(chineseData[i][6]);
		dat.setExempleTraduit(chineseData[i][7]);
		if ( chineseData[i][9].equals("1")) {
			dat.setFirstLevel(true);
		}
		else {
			dat.setFirstLevel(false);
		}
		dat.setAdrImgage(chineseData[i][13]);
		//dat.setAdrSon(chineseData[i][14]);
	}
	return data ;
}

public static List<DataChineseLanguage> loadDataPinyin() {
	String[][] idata = quizzChinesePinyin ;
	List<DataChineseLanguage> data = new ArrayList<DataChineseLanguage>();
	for (int i = 0 ; idata != null && i < idata.length ; i++) {
		DataChineseLanguage dat = new DataChineseLanguage(idata[i][0]);
		data.add(dat);
		List<String> reponsesTxtPossibles = new ArrayList<String>();
		String reponsePossibles = idata[i][1] ; 
		StringTokenizer st = new StringTokenizer(reponsePossibles, ",");
		
		while (st.hasMoreTokens()) {
			reponsesTxtPossibles.add(st.nextToken());
		}
		
		dat.setId(i + "");
		dat.setReponsesTxtPossibles(reponsesTxtPossibles);
		dat.setPinyin(idata[i][0]);
		dat.setIdTypeQuizz(Integer.parseInt(idata[i][3]));
		dat.setNumQuizz(idata[i][4]);
		dat.setNote(2);
	}
	return data ;
}



public static List<DataChineseLanguage> loadData() {
	return loadData(chineseData) ;
}

public static int getSound(String pinyin) {
	for (int i = 0 ; i < chinesePinyin.length ; i++) {
		if (chinesePinyin[i][0].equals(pinyin) ) return Integer.parseInt(chinesePinyin[i][1]) ; 
	}
	return 0 ;
}


private static String[][] chinesePinyin = 
{
	{"lā",String.valueOf(R.raw.la1)}
	,{"lá",String.valueOf(R.raw.la2)}
	,{"lǎ",String.valueOf(R.raw.la3)}
	,{"là",String.valueOf(R.raw.la4)}
	,{"lī",String.valueOf(R.raw.li1)}
	,{"lí",String.valueOf(R.raw.li2)}
	,{"lǐ",String.valueOf(R.raw.li3)}
	,{"lì",String.valueOf(R.raw.li4)}	
	,{"mā",String.valueOf(R.raw.ma1)}
	,{"má",String.valueOf(R.raw.ma2)}
	,{"mǎ",String.valueOf(R.raw.ma3)}
	,{"mà",String.valueOf(R.raw.ma4)}	
	,{"māi",String.valueOf(R.raw.mai1)}
	,{"mái",String.valueOf(R.raw.mai2)}
	,{"mǎi",String.valueOf(R.raw.mai3)}
	,{"mài",String.valueOf(R.raw.mai4)}	
	,{"shū",String.valueOf(R.raw.shu1)}
	,{"shú",String.valueOf(R.raw.shu2)}
	,{"shǔ",String.valueOf(R.raw.shu3)}
	,{"shù",String.valueOf(R.raw.shu4)}		
	,{"hǎi",String.valueOf(R.raw.hai3)}
	,{"rì",String.valueOf(R.raw.ri4)}
	,{"Yuè",String.valueOf(R.raw.yue4)}
	,{"xīng",String.valueOf(R.raw.xin1g)}
	
	
} ;



private static String[][] quizzChinesePinyin = 
{
	{"lǎ","lā,lá,lǎ,là","","1","1"}
	,{"lí","lī,lí,lǐ,lì","","1","1"}
	,{"māi","māi,mái,mǎ,mǎi","","1","1"}
	,{"lā","lā,lá,lǎ,là","","1","2"}
	,{"lì","lī,lí,lǐ,lì","","1","2"}
	,{"mā","mā,má,mǎ,mà","","1","2"}
	,{"shū","shū,shú,shǔ,shù","","1","3"}
	,{"mǎ","mā,má,mǎ,mà","","1","3"}	
	,{"mǎi","māi,mái,mǎi,mǎi","","1","3"}
	,{"shù","shū,shú,shǔ,shù","","1","4"}
	

	,{"shú","shū,shú,shǔ,shù","","1","4"}
	,{"lī","lī,lí,lǐ,lì","","1","4"}
	,{"mái","māi,mái,mǎ,mǎi","","1","5"}
	,{"mà","mā,má,mǎ,mà","","1","5"}	
	,{"lá","lā,lá,lǎ,là","","1","5"}
	,{"lá","lā,lá,lǎ,là","","1","6"}
	,{"lǐ","lī,lí,lǐ,lì","","1","6"}
	,{"má","mā,má,mǎ,mà","","1","6"}
	,{"māi","māi,mái,mǎi,mǎi","","1","7"}
	,{"shǔ","shū,shú,shǔ,shù","","1","7"}
	
	
	
} ;


private static String[][] chineseData = 
{
	{"行","???","ligne","1","","","","","","","","1","","",String.valueOf(0)}
	,{"安","ān","calme,paix","1","","","晚安","bonne nuit","","","","1","","",String.valueOf(0)}
	,{"按","àn","appuyer","1","按下","按下钮","","","","","","1","","",String.valueOf(0)}
	,{"班","bān","équipe travail","1","","","","","","","","1","","",String.valueOf(0)}
	,{"帮","bāng","aider","1","帮 助","aider","你  来      帮      我","tu vas m'aider","","","","1","","",String.valueOf(0)}
	,{"包","bāo","enveloppe","1","","","","","","","","1","","",String.valueOf(0)}
	,{"把","bǎ","tenir","1","","","","","","","","1","","",String.valueOf(0)}
	
	,{"北","běi","nord","1","北方","","","","","","","1","","",String.valueOf(0)}
	,{"备","bèi","préparer","2","准备","préparer","","","","","","1","","",String.valueOf(0)}
	,{"本","ben","racine","1","","","","","","","","1","","",String.valueOf(0)}
	,{"比","bǐ","comparer","1","","","","","","","","1","","",String.valueOf(0)}
	,{"病","bìng","malade","1","生病","","","","","","","1","","",String.valueOf(0)}
	,{"变","biàn","changer","1","变老","","","","","","","1","","",String.valueOf(0)}
	,{"餐","cān","repas","2","晚餐","diner","","","","","","1","","",String.valueOf(0)}
	,{"菜","cài","légumes","1","","","法 国菜;菜刀;菜地;菜场;菜油;菜园;菜子;菜瓜","cuisine française;couteau légumes;champ légumes;marché;huile végétale;potager;graine légumes;concombre","","","","1","","",String.valueOf(0)}
	,{"厕","cè","toilette","2","厕所","","","","","","","1","","",String.valueOf(0)}
	,{"茶","chá","thé","1","","","","","","","","1","","",String.valueOf(0)}
	,{"常","cháng","souvent","1","","非常快","","","","","","1","","",String.valueOf(0)}
	
	
	,{"成","chéng","devenir","1","","","","","","","","1","","",String.valueOf(0)}
	,{"宠","chǒng","gâté","2","宠物","animal domestique","","","","","","1","","",String.valueOf(0)}
	,{"春","chūn","printemps","1","春天","printemps","春天树叶绿了","","","","","1","","",String.valueOf(0)}
	,{"错","cuò","faux","1","错误","","","","","","","1","","",String.valueOf(0)}
	,{"当","dāng","","2","","","","","","","","1","","",String.valueOf(0)}
	,{"当","dāng","agir,manager,être","2","当然","bien sur","","","","","","1","","",String.valueOf(0)}
	
	,{"大","dà","grand","1","长大","grandir","","","","","","1","","",String.valueOf(0)}
	,{"道","dào","voie","1","道路","","","","","","","1","","",String.valueOf(0)}
	,{"的","de","","1","","","","","","","","1","","",String.valueOf(0)}
	,{"得","de","","1","觉得","","","","","","","1","","",String.valueOf(0)}
	,{"地","dì","sol,endroit","1","","","","","","","","1","","",String.valueOf(0)}
	,{"定","dìng","calme,définitif","1","","","","","","","","1","","",String.valueOf(0)}
	,{"电","diàn","electricite","1","电话;电视","","","","","","","1","","",String.valueOf(0)}
	,{"点","dian","","1","","","","","","","","1","","",String.valueOf(0)}
	,{"东","dōng","est","1","东  西","choses","我  喜   欢      切   东  西。","j'aime couper les choses","","","","1","","",String.valueOf(0)}
	
	,{"读","dú","lire","1","","","","","","","","1","","",String.valueOf(0)}
	,{"对","duì","couple,paire,opposé,répondre","1","对比;对等;对话;对局;对了","contraster,équilibrer;égal à;dialogue;jouer échec;correct","","","","","","1","","",String.valueOf(0)}
	,{"儿","ér","enfant","1","婴儿;儿子","","","","","","","1","","",String.valueOf(0)}
	,{"方","fāng","direction","1","","","","","","","","1","","",String.valueOf(0)}
	
	,{"法","fà","loi","1","法国","","","","","","","1","","",String.valueOf(0)}
	,{"非","fēi","","1","","非常快","","","","","","1","","",String.valueOf(0)}
	,{"飞","fēi","voler","1","飞机","","","","","","","1","","",String.valueOf(0)}
	
	,{"服","fú","vêtements","1","衣服","","","","","","","1","","",String.valueOf(0)}
	,{"父","fù","pere","1","父亲","pere","","","","","","1","","",String.valueOf(0)}
	,{"高","gāo","haut","1","高兴","","","","","","","1","","",String.valueOf(0)}
	,{"盖","gài","construire","2","","","他们要盖房子","","","","","1","","",String.valueOf(0)}
	,{"干","gàn","sec,travailler,","1","","","你在干什么？","","","","","1","","",String.valueOf(0)}
	,{"告","gào","dire","1","告诉","","","","","","","1","","",String.valueOf(0)}
	,{"个","gè","qte","1","","","三个猪宝宝","","","","","1","","",String.valueOf(0)}
	,{"工","gōng","travail","1","工作","","你的工作是什么？","","","","","1","","",String.valueOf(0)}
	,{"公","gōng","public","1","","","","","","","","1","","",String.valueOf(0)}
	,{"故","gù","mourir,cause","2","事故","accident","","","","","","1","","",String.valueOf(0)}
	,{"国","guó","pays","1","","","","","","","","1","","",String.valueOf(0)}
	,{"寒","hán","froid","2","寒冷","","","","","","","1","","",String.valueOf(0)}
	
	,{"汉","hàn","chinois,han","1","","","","","","","","1","","",String.valueOf(0)}
	
	,{"和","hé","et","1","","","","","","","","1","","",String.valueOf(0)}
	,{"后","hòu","après,derrière","1","","","","","","","","1","","",String.valueOf(0)}
	
	,{"话","huà","parler","1","电话","","","","","","","1","","",String.valueOf(0)}
	,{"欢","huan","heureux","1","","","","","","","","1","","",String.valueOf(0)}
	,{"回","huí","revenir","1","回头","plus tard","回头见","a bientôt","","","","1","","",String.valueOf(0)}
	,{"毁","huǐ","détruire","2","坠毁","","","","","","","1","","",String.valueOf(0)}
	,{"会","huì","futur","1","一会儿","un instant","","","","","","1","","",String.valueOf(0)}
	
	,{"机","jī","machine","1","飞机","","","","","","","1","","",String.valueOf(0)}
	,{"今","jīn","","1","今天","","","今天是星期六","aujourd'hui c'est samedi","","","1","","",String.valueOf(0)}
	,{"经","jīng","apres,traverser,endurer","1","已经","",":你们已经长大了","","","","","1","","",String.valueOf(0)}
	,{"已","jǐ","","1","自己","","","","","","","1","","",String.valueOf(0)}
	,{"景","jǐng","voir","1","","","夜景","","","","","1","","",String.valueOf(0)}
	,{"见","jìan","voir","1","","","再见","","","","","1","","",String.valueOf(0)}
	,{"镜","jìng","miroir","2","眼镜","","","","","","","1","","",String.valueOf(0)}
	,{"家","jiā","foyer,famille","1","","","","","","","","1","","",String.valueOf(0)}
	,{"间","jiān","entre","1","夜间","","","","","","","1","","",String.valueOf(0)}
	,{"减","jiǎn","moins,diminuer","1","减少 ","","","","","","","1","","",String.valueOf(0)}
	,{"箭","jiàn","flèche","2","火箭","fusée","","","","","","1","","",String.valueOf(0)}
	,{"局","jú","étroit","2","对局","jouer échec","","","","","","1","","",String.valueOf(0)}
	,{"觉","jué","dormir","1","觉得","","我觉得今天下午会下雨","","","","","1","","",String.valueOf(0)}
	,{"觉","jué","dormir","1","睡觉","","","","","","","1","","",String.valueOf(0)}
	,{"看","kàn","regarder","1","","","","","","","","1","","",String.valueOf(0)}
	,{"开","kai","ouvrir","1","","","","","","","","1","","",String.valueOf(0)}
	,{"可","kě","capable de","1","","","kěyǐ le","je peux.","","","","1","","",String.valueOf(0)}
	,{"可","kě","pouvoir","1","可能","","","","","","","1","","",String.valueOf(0)}
	,{"空","kōng","vide","1","天空","","","","","","","1","","",String.valueOf(0)}
	,{"块","kùai","pièce,morceau","1","","","你能 把它们  切  成  小 块 吗？","peux tu les couper en petits morceaux ?","","","","1","","",String.valueOf(0)}
	,{"快","kuài","","1","","","","","","","","1","","",String.valueOf(0)}
	
	,{"老","lǎo","ancien","1","老师","","","","","","","1","","",String.valueOf(0)}
	,{"来","laí","aller","1","","","我  来  做","je cuisine","","","","1","","",String.valueOf(0)}
	,{"了","le","passé","1","","","","","","","","1","","",String.valueOf(0)}
	,{"冷","lěng","froid","1","","","","","","","","1","","",String.valueOf(0)}
	,{"离","lí","partir","1","离开","","我离开今晚在20点","","","","","1","","",String.valueOf(0)}
	,{"里","lǐ","dans","1","","在哪里","","","","","","1","","",String.valueOf(0)}
	,{"两","lǐang","deux","1","","","","","","","","1","","",String.valueOf(0)}
	
	,{"亮","liang","brillant","1","漂亮","","","","","","","1","","",String.valueOf(0)}
	
	,{"落","luò","laisser tomber","2","日落","coucher du soleil","","","","","","1","","",String.valueOf(0)}
	
	,{"妈","mā","maman","1","妈妈","","","","","","","1","","",String.valueOf(0)}
	,{"买","mǎi","acheter","1","","","","","","","","1","","",String.valueOf(0)}
	,{"么","me","","1","","","是什么;个什么房子 好","","","","","1","","",String.valueOf(0)}
	,{"每","měi","chaque","1","我每天早","","","","","","","1","","",String.valueOf(0)}
	,{"美","měi","joli","1","美国","","","","","","","1","","",String.valueOf(0)}
	,{"明","míng","suivant,clair,savoir","1","明天;明白","明天见;明年见","a demain;a l'année prochaine","","","","","1","","",String.valueOf(0)}
	,{"面","miàn","visage","1","面包","","","","","","","1","","",String.valueOf(0)}
	,{"母","mǔ","mère","1","母亲","","","","","","","1","","",String.valueOf(0)}
	,{"哪","nǎ","lequel","1","","在哪里","","","","","","1","","",String.valueOf(0)}
	
	,{"脑","nǎo","cerveau","2","电脑","","","","","","","1","","",String.valueOf(0)}
	,{"那","nà","ce","1","","","","","","","","1","","",String.valueOf(0)}
	,{"呢","ne","","1","","","","","","","","1","","",String.valueOf(0)}
	,{"能","néng","pouvoir","1","","","你能读这本书？","","","","","1","","",String.valueOf(0)}
	,{"内","nèi","dans","2","室内","interieur","","","","","","1","","",String.valueOf(0)}
	,{"你","nǐ","tu","1","","","","","","","","1","","",String.valueOf(0)}
	,{"应","nǐ","devoir","1","应该","","","","","","","1","","",String.valueOf(0)}
	,{"年","nián","année","1","","","我学 了五年汉语","","","","","1","","",String.valueOf(0)}
	
	,{"钮","niǔ","bouton","1","","","","","","","","1","","",String.valueOf(0)}
	,{"拼","pīn","épeler","2","","","","","","","","1","","",String.valueOf(0)}
	,{"漂","piào","élégant","2","漂亮","","","","","","","1","","",String.valueOf(0)}
	,{"谱","pǔ","liste,score musical,spectre (phys., math)","2","","","","","","","","1","","",String.valueOf(0)}
	,{"妻","qī","femme","2","妻子","","","","","","","1","","",String.valueOf(0)}
	,{"期","qī","période,phase,stage,temps","1","","","","","","","","1","","",String.valueOf(0)}
	,{"切","qīe","couper","2","","","我来洗菜切菜","je nettoie et coupe les légumes.","","","","1","","",String.valueOf(0)}
	,{"亲","qīn","parent","1","父亲;母亲","pere;mère","","","","","","1","","",String.valueOf(0)}
	,{"其","qí","this,their","1","","","","","","","","1","","",String.valueOf(0)}
	,{"起","qǐ","démarrer","1","一起","ensemble","","","","","","1","","",String.valueOf(0)}
	,{"请","qǐng","stp","1","请喝;请问","","","","","","","1","","",String.valueOf(0)}
	,{"钱","qián","argent","1","多少钱","","","","","","","1","","",String.valueOf(0)}
	,{"曲","qū","courbé","2","","","","","","","","1","","",String.valueOf(0)}
	,{"曲","qǔ","musique","2","","","","","","","","1","","",String.valueOf(0)}
	,{"去","qù","aller","1","","","","","","","","1","","",String.valueOf(0)}
	,{"然","rán","cependant","1","然后;当然","et ensuite,alors;bien sur","","","","","","1","","",String.valueOf(0)}
	,{"让","ràng","laisser","2","","","让我  想 一下;你 让我切 多少","fais moi voir.;mais combien veux tu que j'en coupe ?","","","","1","","",String.valueOf(0)}
	
	,{"如","rú","si,comme","1","如果","","","","","","","1","","",String.valueOf(0)}
	,{"闪","shǎn","flash","1","闪耀","","","","","","","1","","",String.valueOf(0)}
	,{"少","shǎo","jeune,moins","1","减少","","","","","","","1","","",String.valueOf(0)}
	,{"生","shēng","accoucher","1","医生;生病","","","","","","","1","","",String.valueOf(0)}
	,{"什","shén","","1","","","","","","","","1","","",String.valueOf(0)}
	,{"师","shī","teacher","1","老师","","","","","","","1","","",String.valueOf(0)}
	,{"时","shí","heure","1","小时","","","","","","","1","","",String.valueOf(0)}
	,{"始","shǐ","démarrer","1","开始","","我35 岁 开始学 汉语","","","","","1","","",String.valueOf(0)}
	,{"是","shì","être","1","","","","","","","","1","","",String.valueOf(0)}
	,{"视","shì","regarder","1","电视","","我们在电视","","","","","1","","",String.valueOf(0)}
	
	,{"事","shì","chose,affaire","1","事故","accident","","","","","","1","","",String.valueOf(0)}
	,{"室","shì","chambre","2","室内","interieur","","","","","","1","","",String.valueOf(0)}
	
	
	,{"熟","shú","familier,cuit à point","2","熟 悉","familier avec","","","","","","1","","",String.valueOf(0)}
	
	,{"顺","shùn","le long","1","顺风","vent favorable","","","","","","1","","",String.valueOf(0)}
	,{"刷","shuā","brosse","2","","","你快刷牙","","","","","1","","",String.valueOf(0)}
	,{"最","shuí","le plus","2","","","","","","","","1","","",String.valueOf(0)}
	,{"睡","shuì","dormir","1","睡觉","","睡个好觉","dormez bien","","","","1","","",String.valueOf(0)}
	,{"说","shuō","dire","1","","","我不会说","","","","","1","","",String.valueOf(0)}
	,{"说","shuō","dire","1","","","猪妈妈说","","","","","1","","",String.valueOf(0)}
	,{"诉","su","plainte","1","告诉","","","","","","","1","","",String.valueOf(0)}
	,{"岁","suì","an","1","","","","","","","","1","","",String.valueOf(0)}
	,{"所","suǒ","","2","厕所","","","","","","","1","","",String.valueOf(0)}
	,{"它","tā","il","1","","","","","","","","1","","",String.valueOf(0)}
	,{"他","tā","il","1","","","","","","","","1","","",String.valueOf(0)}
	,{"滩","tān","plage","2","海滩","plage","","","","","","1","","",String.valueOf(0)}
	,{"汤","tāng","soupe","2","","","我 想 做 汤","je ferai la soupe.","","","","1","","",String.valueOf(0)}
	,{"梯","tī","échelle","2","电梯","","两小时电梯","","","","","1","","",String.valueOf(0)}
	,{"庭","tíng","court","2","","","","","","","","1","","",String.valueOf(0)}
	
	,{"同","tóng","pareil","1","同意","","","","","","","1","","",String.valueOf(0)}
	,{"头","tóu","tête,cheveux,en haut,premier","1","","","","","","","","1","","",String.valueOf(0)}
	,{"土","tǔ","terre","2","土豆","pommes de terre","","","","","","1","","",String.valueOf(0)}
	,{"哇","wā","son d'un enfant pleurant","2","","","好哇","bien à entendre","","","","1","","",String.valueOf(0)}
	,{"玩","wán","jouer","1","","","","","","","","1","","",String.valueOf(0)}
	,{"晚","wǎn","soir","1","","","","","","","","1","","",String.valueOf(0)}
	
	,{"微","wéi","micro","2","微笑","","","","","","","1","","",String.valueOf(0)}
	,{"为","wèi","pour","1","为什么","","","","","","","1","","",String.valueOf(0)}
	,{"午","wǔ","midi","1","xiàwǔ","","","","","","","1","","",String.valueOf(0)}
	,{"五","wǔ","cinq","1","","","","","","","","1","","",String.valueOf(0)}
	,{"误","wù","erreur","1","错误","","","","","","","1","","",String.valueOf(0)}
	,{"物","wù","chose","1","宠物","animal domestique","","","","","","1","","",String.valueOf(0)}
	,{"西","xī","ouest","1","东  西","choses","","","","","","1","","",String.valueOf(0)}
	,{"悉","xī","savoir","1","熟 悉","familier avec","","","","","","1","","",String.valueOf(0)}
	
	,{"行","xíng","","1","行星","","","","","","","1","","",String.valueOf(0)}
	,{"洗","xǐ","laver","1","洗手","","","","","","","1","","",String.valueOf(0)}
	,{"喜","xǐ","aimer,heureux","1","","","","","","","","1","","",String.valueOf(0)}
	,{"兴","xìng","prospérer","1","高兴","","","","","","","1","","",String.valueOf(0)}
	,{"想","xiǎng","souhaiter","1","","","我想吃好点的","","!!!","","","1","","",String.valueOf(0)}
	,{"下","xià","bas","1","一下","a propos de","","","","","","1","","",String.valueOf(0)}
	,{"下","xià","bas","1","按下","","","","","","","1","","",String.valueOf(0)}
	,{"像","xiàng","image","2","","1","","","夜间人像","","","1","","",String.valueOf(0)}
	,{"笑","xiào","rire","1","微笑","","","","","","","1","","",String.valueOf(0)}
	,{"校","xiào","école","1","学校","","","","","","","1","","",String.valueOf(0)}
	,{"些","xiē","quantité","1","","","我 要一些 面包","","","","","1","","",String.valueOf(0)}
	,{"学","xué","apprendre","1","学校","","","","","","","1","","",String.valueOf(0)}
	,{"需","xǖ","avoir besoin","1","需要","avoir besoin","我 需要  胡萝卜和 土豆","j'ai besoin de carottes et de pommes de terre.","","","","1","","",String.valueOf(0)}
	,{"牙","yá","dent","1","","","","","","","","1","","",String.valueOf(0)}
	
	,{"要","yào","vouloir","1","","","我要去 买牛奶","","","","","1","","",String.valueOf(0)}
	,{"钥","yào","clef","2","钥匙","","","","","","","1","","",String.valueOf(0)}
	,{"耀","yào","briller","1","闪耀","","","","","","","1","","",String.valueOf(0)}
	,{"也","yě","aussi","1","","","","","","","","1","","",String.valueOf(0)}
	,{"夜","yè","nuit","1","夜间","","","","","","","1","","",String.valueOf(0)}
	,{"叶","yè","feuille","2","树叶","","","","","","","1","","",String.valueOf(0)}
	,{"衣","yī","vêtements","1","衣服","","","","","","","1","","",String.valueOf(0)}
	,{"医","yī","medecin","1","医生","","","","","","","1","","",String.valueOf(0)}
	,{"音","yīn","son","1","噪音","","","","","","","1","","",String.valueOf(0)}
	,{"因","yīn","car","1","因为","","","","","","","1","","",String.valueOf(0)}
	,{"婴","yīng","nourrisson","2","婴儿","","","","","","","1","","",String.valueOf(0)}
	,{"该","yīng","ce","1","应该","","","","","","","1","","",String.valueOf(0)}
	,{"已","yǐ","déjà","1","已经","","","","","","","1","","",String.valueOf(0)}
	,{"影","yǐng","ombre","1","电影","","","","","","","1","","",String.valueOf(0)}
	,{"意","yì","sens","1","同意","","","","","","","1","","",String.valueOf(0)}
	,{"意","yì","signification","2","主意","idée","","","","","","1","","",String.valueOf(0)}
	
	,{"用","yòng","utiliser","1","","","","","","","","1","","",String.valueOf(0)}
	
	,{"语","yǔ","langage,parler","1","","","","","","","","1","","",String.valueOf(0)}
	,{"元","yuán","yuan","1","","","","","","","","1","","",String.valueOf(0)}
	,{"早","zǎo","matin,tôt","1","","","","","","","","1","","",String.valueOf(0)}
	,{"再","zài","encore","1","","","","","","","","1","","",String.valueOf(0)}
	,{"噪","zào","bruit","1","噪音","","","","","","","1","","",String.valueOf(0)}
	,{"长","zhǎng","longueur","1","长大","grandir","猪宝宝长大了","","","","","1","","",String.valueOf(0)}
	,{"站","zhàn","gare","1","","","","","","","","1","","",String.valueOf(0)}
	,{"站","zhàn","gare","1","","","","","","","","1","","",String.valueOf(0)}
	,{"这","zhè","ce","1","","","","","","","","1","","",String.valueOf(0)}
	,{"只","zhī","seulement","1","","","三只小猪;只有两个人吃晚 饭","seulement deux personnes pour le dîner.","","","","1","","",String.valueOf(0)}
	,{"知","zhī","savoir","1","","","你知道吗","","","","","1","","",String.valueOf(0)}
	,{"中","zhōng","milieu","1","","","","","","","","1","","",String.valueOf(0)}
	,{"周","zhōu","semaine","1","","","下周见","a la semaine prochaine","","","","1","","",String.valueOf(0)}
	
	,{"主","zhǔ","maître,propriétaire,manager","1","主意","idée","","好主意","bonne idée","","","1","","",String.valueOf(0)}
	,{"助","zhù","aider","1","帮 助","aider"," 我  来    帮 助         你  好 吗？","","!!!","","","1","","",String.valueOf(0)}
	,{"坠","zhuì","tomber","2","坠毁","","","","","","","1","","",String.valueOf(0)}
	,{"子","zi","fils","1","妻子;儿子,一会儿",";;un instant","","","","","","1","","",String.valueOf(0)}
	,{"自","zì","soi même","1","自行车;应该自己 盖房子了","","","","","","","1","","",String.valueOf(0)}
	,{"走","zǒu","","1","我走在山中","","","","","","","1","","",String.valueOf(0)}
	,{"作","zuo","faire","1","","","","","","","","1","","",String.valueOf(0)}
	,{"昨","zuó","","1","昨天","","","","","","","1","","",String.valueOf(0)}
	,{"做","zuò","faire","1","我做面包","","","","","","","1","","",String.valueOf(0)}
	,{"坐","zuò","assoir","1","","","","","","","","1","","",String.valueOf(0)}

	,{"日","rì","soleil","1","日落","coucher du soleil","","","","1","","1","",String.valueOf(R.drawable.sun),String.valueOf(0)}
	,{"月","Yuè","Lune","","","","月亮","","","1","","1","",String.valueOf(R.drawable.moon),String.valueOf(0)}
	,{"海","hǎi","mer","1","海滩","plage","","","","1","","1","",String.valueOf(R.drawable.sea),String.valueOf(0)}
	,{"山","shān","montagne","1","","","","","","1","","1","",String.valueOf(R.drawable.montagne),String.valueOf(0)}
	,{"天","tiān","ciel","1","","","","","","","","1","","",String.valueOf(0)}
	,{"星","xīng","etoile","1","星星;星 期","étoile;semaine","","","","1","","1","","",String.valueOf(0)}
	
	,{"宝","bǎ","bebe","2","","","","","","1","","1","","",String.valueOf(0)}
	,{"车","chē","voiture,véhicule","1","","","","","","1","","1","","",String.valueOf(0)}
	,{"刀","dāo","couteau","1","刀子","","","","","1","","1","","",String.valueOf(0)}
	,{"豆","dòu","haricots","2","土豆","pommes de terre","","","","1","","1","","",String.valueOf(0)}
	,{"风","fēng","vent","1","顺风","vent favorable","","","","1","","1","","",String.valueOf(0)}
	,{"房","fáng","maison","1","","","","","","1","","1","","",String.valueOf(0)}
	
	,{"喝","hē","boire","1","","","","","","1","","1","","",String.valueOf(0)}
	,{"吃","che","manger","1","","","","","","1","","1","","",String.valueOf(0)}
	,{"火","huǒ","feu","1","火车;火箭","","","","","","","1","","",String.valueOf(0)}
	,{"路","lù","rue","1","道路","","一路顺风","bon voyage","","1","","1","","",String.valueOf(0)}
	,{"萝","luó","radis","2","胡萝","carrotes","","","","1","","1","","",String.valueOf(0)}	
	
	,{"奶","nǎi","lait","2","","","","","","","","1","","",String.valueOf(0)}
	,{"牛","niú","vache","1","","","","","","1","","1","","",String.valueOf(0)}
	
	
	,{"勺","sháo","cuillère","2","勺子","","","","","1","","1","","",String.valueOf(0)}
	,{"手","shǒu","main","1","","","","","","1","","1","","",String.valueOf(0)}
	,{"书","shu","livre","1","","","","","","1","","1","","",String.valueOf(0)}
	,{"树","shù","arbre","1","树叶","","","","","1","","1","","",String.valueOf(0)}
	
	,{"网","wǎng","réseau,filet","1","网站","","","","","1","","1","","",String.valueOf(0)}
	
	,{"眼","yǎn","oeil","2","眼镜","","","","","","","1","","",String.valueOf(0)}
	,{"油","yóu","huile","2","菜油","huile végétale","","","","1","","1","","",String.valueOf(0)}
	,{"雨","yǔ","pluie","1","","xià yǔ","","","","1","","1","","",String.valueOf(0)}
	,{"猪","zhū","cochon","2","","","猪妈妈和三个猪宝宝","","","1","","1","","",String.valueOf(0)}
	
	,{"黑","Hēi","noir","","","","Hēisè","","","1","","1","","",String.valueOf(0)}
	,{"绿","lǜ","vert","2","","","","","","1","","1","","",String.valueOf(0)}
	,{"红","Hóng","rouge","","","","Hóngsè","","","1","","1","","",String.valueOf(0)}
	,{"白","Bái","blanc","","","","","","","1","","1","","",String.valueOf(0)}
	,{"蓝","lán","bleu","1","","","","","","1","","1","","",String.valueOf(0)}
	,{"黄","huáng","jaune","1","","","","","","1","","1","","",String.valueOf(0)}

	
	,{"","","","0","","","","","","1","","1","","",String.valueOf(0)}
	,{"一","Yī","1","","","","","","","1","","1","","",String.valueOf(0)}
	,{"二","Èr","2","","","","","","","1","","1","","",String.valueOf(0)}
	,{"三","Sān","3","","","","","","","1","","1","","",String.valueOf(0)}
	,{"四","Sì","4","","","","","","","1","","1","","",String.valueOf(0)}
	,{"五","Wǔ","5","","","","","","","1","","1","","",String.valueOf(0)}
	,{"六","Liù","6","","","","","","","1","","1","","",String.valueOf(0)}
	,{"七","Qī","7","","","","","","","1","","1","","",String.valueOf(0)}
	,{"八","Bā","8","","","","","","","1","","1","","",String.valueOf(0)}
	,{"九","Jiǔ","9","","","","","","","1","","1","","",String.valueOf(0)}
	,{"十","Shí","10","","","","","","","1","","1","","",String.valueOf(0)}
	,{"百","Bǎi","100","","","","","","","1","","1","",String.valueOf(R.drawable.sea),String.valueOf(0)}
	
};



}